Skip to content

fix(menus): the menu bar's menus open under the bar, at most three quarters of the window tall (2.8.3) - #37

Merged
nodemode-ai merged 2 commits into
mainfrom
fix/menu-under-bar-2.8.3
Nov 29, 2026
Merged

nodemode-ai merged 2 commits into
mainfrom
fix/menu-under-bar-2.8.3

Conversation

@nodemode-ai

Copy link
Copy Markdown
Collaborator

fix(menus): the menu bar's menus open under the bar, at most three quarters of the window tall (2.8.3)

Summary

  • On Linux, Windows and in the browser, a menu of the in-window menu bar that was longer than the room under the bar (File and View in a 1080-pixel window) covered the menu bar. A person on Linux reported it.
  • Cause: MenuBar.open placed its menus with PopupMenu.openAt, the context menus' placement, which puts a menu above its point when it does not fit below and then clamps it into the window. A long menu ended at top: 4px, over the bar.
  • Fix in frontend/src/ui/menu.ts: a new PopupMenu.openUnder opens a bar menu with its top just under the bar and never moves it up. Before it is measured it gets a max-height of three quarters of the window's height, and never more than the room left under the bar; the rest scrolls. Its submenus (openBeside) keep under the bar with the same cap. Context, layer, tab, guide and task bar menus still use openAt and are placed as before.
  • The macOS menu bar is the system's (native-menu.ts) and is unchanged; with View > Menus in Window on macOS the in-window bar gets the fix too.
  • The three browser demos are built again at 2.8.3, so they carry the fix.

Commits

  • fix(menus): the menu bar's menus open under the bar and are at most three quarters of the window tall
  • chore(release): 2.8.3, the menu bar's menus open under the bar at most three quarters of the window tall, and all three demos at this version

Short hashes change when the commits are signed, so they are left out.

Version

v2.8.3 (release commit is last). Bumped: frontend/package.json, frontend/package-lock.json (both fields), frontend/src/version.ts, backend/app/__init__.py, src-tauri/Cargo.toml, src-tauri/Cargo.lock, src-tauri/tauri.conf.json, the README badge, packaging/linux/ai.nodemode.formvis.metainfo.xml (a 2.8.3 release line), and a CHANGELOG.md section for 2.8.3. demo/assets/demo.js, demos/design/assets/design.js and demos/retouch/assets/retouch.js are rebuilt with npm run demo and npm run demos.

Checks

  • tsc --noEmit in frontend: clean.
  • ./formvis counts --check: README.md is accurate.
  • A production build in headless Chromium with the CPU slowed 4 times and the network slowed, at 1871 by 1080, 1280 by 720, 1000 by 480 and 800 by 320. Every menu of the bar and its last submenu had its top at or under the bar's bottom edge in every frame drawn while it opened, was at most three quarters of the window tall, and ended inside the window. At 1871 by 1080, File and View were at top 4 and 1072 tall before the fix, and are at top 38 and 810 tall after it, scrolling the rest; the bar's bottom edge is at 34.
  • Keyboard: F10 then End at 1280 by 600 scrolls File to its last row, Exit, inside the menu.
  • The three rebuilt demos opened from file:// at 1871 by 1080: File at top 38, 810 tall.
  • npx vitest run in frontend: 54 files, 299 tests passed.
  • Not run: the Tauri window on Linux, Windows or macOS; the engine tests.

Merging

Merge with a merge commit so each commit and its signature stays. Do not squash.

…hree quarters of the window tall

A menu taller than the room under the bar was moved up until it fit, so File,
View and the other long menus covered the menu bar on Linux, Windows and in
the browser. A bar menu now always opens just under the bar, is at most three
quarters of the window tall and never runs past its bottom edge, and scrolls
what does not fit. Its submenus keep under the bar to the same cap. Context
menus are placed as before.
…t three quarters of the window tall, and all three demos at this version
@nodemode-ai
nodemode-ai requested a review from gbarnai as a code owner November 29, 2026 01:39
@nodemode-ai
nodemode-ai merged commit b4ac693 into main Nov 29, 2026
6 checks passed
@nodemode-ai
nodemode-ai deleted the fix/menu-under-bar-2.8.3 branch November 29, 2026 05:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant